import 'package:bloc/bloc.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

import '../main.dart';

class BlocUnivesalDeleagte extends BlocObserver {
  @override
  void onChange(BlocBase bloc, Change change) {
    logger.w("bloc: $bloc, and change: $change");
    super.onChange(bloc, change);
  }

  @override
  void onTransition(Bloc bloc, Transition transition) {
    logger.w("bloc: $bloc, and transition: $transition");
    super.onTransition(bloc, transition);
  }

  @override
  void onError(BlocBase bloc, Object error, StackTrace stackTrace) {
    logger.w("bloc: $bloc, and error: $error");
    super.onError(bloc, error, stackTrace);
  }
}
